﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.ServiceModel;
using GSBClient;
using System.IO;

public partial class IPFileExecuteService : System.Web.UI.Page
{
    // WCF client var
    private GSBClient.GSBServiceClient client;

    protected void Page_Load(object sender, EventArgs e)
    {
        //TODO: add error handling
        this.client = Global.Client;

        StreamReader reader = new StreamReader(Page.Request.InputStream);
        string data = reader.ReadToEnd();
        reader.Close();

        this.client.CallIPExecuteFile(data);
        //Response.Write(result);
    }
}
